import hyRequest from "../../index";

export function getPageListData(url,queryInfo):any{
  return  hyRequest.post({
        url:url,
        data:queryInfo
    })
}

export function deletePageData(url){
  return hyRequest.delete({
       url:url,
    })
}

// 创建用户
export function createPageData(url,newData){
  return hyRequest.post({
       url:url,
       data:newData
    })
}

export function editPageData(url,editData){
  return hyRequest.patch({
       url:url,
       data:editData
    })
}